package com.atguigu.day05;

public class Test03 {

    public static void main(String[] args) {
        String[] s1 = new String[]{"黑桃", "红桃", "梅花", "方片"};
        String[] s2 = new String[]{"A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "j", "q", "k"};
        String[] poker = new String[52];
        int index = 0;
        for (int i = 0; i < s1.length; i++) {
            for (int j = 0; j < s2.length; j++) {
                poker[index] = s1[i] + s2[j];
                index++;
            }
        }
        for (int i = 0; i < poker.length; i++) {
            System.out.print(poker[i]);
            if ((i + 1) % 13 == 0)
                System.out.println();
        }
        System.out.println(poker[1 - 1]);
        System.out.println(poker[5 - 1]);
        System.out.println(poker[50 - 1]);
    }
}
